﻿using System;
using System.ComponentModel;
using System.Runtime.InteropServices;

namespace Teigha.Core
{
	public class OdGiMapperItemEntry : OdRxObject
	{
		[EditorBrowsable(EditorBrowsableState.Never)]
		public OdGiMapperItemEntry(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGiMapperItemEntry_SWIGUpcast(cPtr), cMemoryOwn)
		{
			this.swigCPtr = new HandleRef(this, cPtr);
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		public static HandleRef getCPtr(OdGiMapperItemEntry obj)
		{
			if (obj != null)
			{
				return obj.swigCPtr;
			}
			return new HandleRef(null, IntPtr.Zero);
		}

		~OdGiMapperItemEntry()
		{
			this.Dispose();
		}

		public override void Dispose()
		{
			if (this.swigCPtr.Handle != IntPtr.Zero)
			{
				if (this.swigCMemOwn)
				{
					lock (this.locker)
					{
						if (this.swigCPtr.Handle != IntPtr.Zero && this.swigCMemOwn)
						{
							this.swigCMemOwn = false;
							GlobalsPINVOKE.delete_OdGiMapperItemEntry(this.swigCPtr);
						}
					}
					this.swigCMemOwn = false;
				}
				this.swigCPtr = new HandleRef(null, IntPtr.Zero);
			}
			GC.SuppressFinalize(this);
			base.Dispose();
		}

		public new static OdGiMapperItemEntry cast(OdRxObject pObj)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = GlobalsPINVOKE.OdGiMapperItemEntry_cast(OdRxObject.getCPtr(pObj));
			OdGiMapperItemEntry result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdGiMapperItemEntry)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdGiMapperItemEntry)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdGiMapperItemEntry)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new static OdRxClass desc()
		{
			OdRxClass result = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(GlobalsPINVOKE.OdGiMapperItemEntry_desc(), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdRxClass isA()
		{
			OdRxClass result = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternal(GlobalsPINVOKE.OdGiMapperItemEntry_isA(this.swigCPtr), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual OdRxObject queryX(OdRxClass protocolClass)
		{
			OdRxObject result = Teigha.Core.Helpers.odrxCreateObjectInternal(GlobalsPINVOKE.OdGiMapperItemEntry_queryX(this.swigCPtr, OdRxClass.getCPtr(protocolClass)), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdGiMapperItemEntry createObject()
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = GlobalsPINVOKE.OdGiMapperItemEntry_createObject();
			OdGiMapperItemEntry result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdGiMapperItemEntry)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdGiMapperItemEntry)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdGiMapperItemEntry)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdGiMapper mapper()
		{
			OdGiMapper result = new OdGiMapper(GlobalsPINVOKE.OdGiMapperItemEntry_mapper(this.swigCPtr), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setMapper(OdGiMapper pMapper, OdGiMapper pInheritMapper)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_setMapper__SWIG_0(this.swigCPtr, OdGiMapper.getCPtr(pMapper), OdGiMapper.getCPtr(pInheritMapper));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setMapper(OdGiMapper pMapper, OdGiMapper pInheritMapper, OdGeMatrix3d tm)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_setMapper__SWIG_1(this.swigCPtr, OdGiMapper.getCPtr(pMapper), OdGiMapper.getCPtr(pInheritMapper), OdGeMatrix3d.getCPtr(tm));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setMapper(OdGiMapper pMaterialMapper)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_setMapper__SWIG_2(this.swigCPtr, OdGiMapper.getCPtr(pMaterialMapper));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setMapper(OdGiMapper pMaterialMapper, OdGeMatrix3d tm)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_setMapper__SWIG_3(this.swigCPtr, OdGiMapper.getCPtr(pMaterialMapper), OdGeMatrix3d.getCPtr(tm));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual OdGeMatrix3d inputTransform()
		{
			OdGeMatrix3d result = new OdGeMatrix3d(GlobalsPINVOKE.OdGiMapperItemEntry_inputTransform(this.swigCPtr), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setInputTransform(OdGeMatrix3d tm)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_setInputTransform(this.swigCPtr, OdGeMatrix3d.getCPtr(tm));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual OdGeMatrix3d deviceTransform()
		{
			OdGeMatrix3d result = new OdGeMatrix3d(GlobalsPINVOKE.OdGiMapperItemEntry_deviceTransform(this.swigCPtr), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setDeviceTransform(OdGeMatrix3d dtm)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_setDeviceTransform(this.swigCPtr, OdGeMatrix3d.getCPtr(dtm));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual OdGeMatrix3d modelTransform()
		{
			OdGeMatrix3d result = new OdGeMatrix3d(GlobalsPINVOKE.OdGiMapperItemEntry_modelTransform(this.swigCPtr), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setModelTransform(OdGeMatrix3d mtm)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_setModelTransform(this.swigCPtr, OdGeMatrix3d.getCPtr(mtm));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual OdGeMatrix3d objectTransform()
		{
			OdGeMatrix3d result = new OdGeMatrix3d(GlobalsPINVOKE.OdGiMapperItemEntry_objectTransform(this.swigCPtr), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setObjectTransform(OdGeMatrix3d otm)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_setObjectTransform__SWIG_0(this.swigCPtr, OdGeMatrix3d.getCPtr(otm));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual OdGeMatrix3d outputTransform()
		{
			OdGeMatrix3d result = new OdGeMatrix3d(GlobalsPINVOKE.OdGiMapperItemEntry_outputTransform(this.swigCPtr), false);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setOutputTransform(OdGeMatrix3d tm)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_setOutputTransform(this.swigCPtr, OdGeMatrix3d.getCPtr(tm));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void recomputeTransformations()
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_recomputeTransformations(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void mapCoords(OdGiMapperItemEntry.MapInputTriangle trg, OdGiMapperItemEntry.MapOutputCoords uv)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_mapCoords__SWIG_0(this.swigCPtr, OdGiMapperItemEntry.MapInputTriangle.getCPtr(trg), OdGiMapperItemEntry.MapOutputCoords.getCPtr(uv));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void mapCoords(OdGePoint3d trg, OdGePoint2d uv)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_mapCoords__SWIG_1(this.swigCPtr, OdGePoint3d.getCPtr(trg), OdGePoint2d.getCPtr(uv));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void mapCoords(SWIGTYPE_p_double trg, SWIGTYPE_p_double uv)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_mapCoords__SWIG_2(this.swigCPtr, SWIGTYPE_p_double.getCPtr(trg), SWIGTYPE_p_double.getCPtr(uv));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void mapCoords(OdGiMapperItemEntry.MapInputTriangle trg, OdGeVector3d normal, OdGiMapperItemEntry.MapOutputCoords uv)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_mapCoords__SWIG_3(this.swigCPtr, OdGiMapperItemEntry.MapInputTriangle.getCPtr(trg), OdGeVector3d.getCPtr(normal), OdGiMapperItemEntry.MapOutputCoords.getCPtr(uv));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void mapCoords(OdGePoint3d trg, OdGeVector3d normal, OdGePoint2d uv)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_mapCoords__SWIG_4(this.swigCPtr, OdGePoint3d.getCPtr(trg), OdGeVector3d.getCPtr(normal), OdGePoint2d.getCPtr(uv));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void mapCoords(SWIGTYPE_p_double trg, SWIGTYPE_p_double normal, SWIGTYPE_p_double uv)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_mapCoords__SWIG_5(this.swigCPtr, SWIGTYPE_p_double.getCPtr(trg), SWIGTYPE_p_double.getCPtr(normal), SWIGTYPE_p_double.getCPtr(uv));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void mapCoords(uint nVerts, OdGePoint3d pVerts, OdGePoint2d pUV, uint nList, SWIGTYPE_p_OdInt32 pIds, OdGiMapperItemEntry.MappingIteratorType mapIt, OdGeVector3d pNormal, OdGeVector3d pFaceNormals, OdGeVector3d pVertNormals, OdGiOrientationType oType)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_mapCoords__SWIG_6(this.swigCPtr, nVerts, OdGePoint3d.getCPtr(pVerts), OdGePoint2d.getCPtr(pUV), nList, SWIGTYPE_p_OdInt32.getCPtr(pIds), (int)mapIt, OdGeVector3d.getCPtr(pNormal), OdGeVector3d.getCPtr(pFaceNormals), OdGeVector3d.getCPtr(pVertNormals), (int)oType);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void mapCoords(uint nVerts, OdGePoint3d pVerts, OdGePoint2d pUV, uint nList, SWIGTYPE_p_OdInt32 pIds, OdGiMapperItemEntry.MappingIteratorType mapIt, OdGeVector3d pNormal, OdGeVector3d pFaceNormals, OdGeVector3d pVertNormals)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_mapCoords__SWIG_7(this.swigCPtr, nVerts, OdGePoint3d.getCPtr(pVerts), OdGePoint2d.getCPtr(pUV), nList, SWIGTYPE_p_OdInt32.getCPtr(pIds), (int)mapIt, OdGeVector3d.getCPtr(pNormal), OdGeVector3d.getCPtr(pFaceNormals), OdGeVector3d.getCPtr(pVertNormals));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void mapCoords(uint nVerts, OdGePoint3d pVerts, OdGePoint2d pUV, uint nList, SWIGTYPE_p_OdInt32 pIds, OdGiMapperItemEntry.MappingIteratorType mapIt, OdGeVector3d pNormal, OdGeVector3d pFaceNormals)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_mapCoords__SWIG_8(this.swigCPtr, nVerts, OdGePoint3d.getCPtr(pVerts), OdGePoint2d.getCPtr(pUV), nList, SWIGTYPE_p_OdInt32.getCPtr(pIds), (int)mapIt, OdGeVector3d.getCPtr(pNormal), OdGeVector3d.getCPtr(pFaceNormals));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void mapCoords(uint nVerts, OdGePoint3d pVerts, OdGePoint2d pUV, uint nList, SWIGTYPE_p_OdInt32 pIds, OdGiMapperItemEntry.MappingIteratorType mapIt, OdGeVector3d pNormal)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_mapCoords__SWIG_9(this.swigCPtr, nVerts, OdGePoint3d.getCPtr(pVerts), OdGePoint2d.getCPtr(pUV), nList, SWIGTYPE_p_OdInt32.getCPtr(pIds), (int)mapIt, OdGeVector3d.getCPtr(pNormal));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void mapCoords(uint nVerts, OdGePoint3d pVerts, OdGePoint2d pUV, uint nList, SWIGTYPE_p_OdInt32 pIds, OdGiMapperItemEntry.MappingIteratorType mapIt)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_mapCoords__SWIG_10(this.swigCPtr, nVerts, OdGePoint3d.getCPtr(pVerts), OdGePoint2d.getCPtr(pUV), nList, SWIGTYPE_p_OdInt32.getCPtr(pIds), (int)mapIt);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void mapCoords(uint nVerts, OdGePoint3d pVerts, OdGePoint2d pUV, uint nList, SWIGTYPE_p_OdInt32 pIds)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_mapCoords__SWIG_11(this.swigCPtr, nVerts, OdGePoint3d.getCPtr(pVerts), OdGePoint2d.getCPtr(pUV), nList, SWIGTYPE_p_OdInt32.getCPtr(pIds));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void mapCoords(uint nVerts, OdGePoint3d pVerts, OdGePoint2d pUV, uint nList)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_mapCoords__SWIG_12(this.swigCPtr, nVerts, OdGePoint3d.getCPtr(pVerts), OdGePoint2d.getCPtr(pUV), nList);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void mapCoords(uint nVerts, OdGePoint3d pVerts, OdGePoint2d pUV)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_mapCoords__SWIG_13(this.swigCPtr, nVerts, OdGePoint3d.getCPtr(pVerts), OdGePoint2d.getCPtr(pUV));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void mapPredefinedCoords(OdGePoint3d pInUVW, OdGePoint2d pOutUV, uint nPoints)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_mapPredefinedCoords(this.swigCPtr, OdGePoint3d.getCPtr(pInUVW), OdGePoint2d.getCPtr(pOutUV), nPoints);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual bool isEntityMapper()
		{
			bool result = GlobalsPINVOKE.OdGiMapperItemEntry_isEntityMapper(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool isObjectMatrixNeed()
		{
			bool result = GlobalsPINVOKE.OdGiMapperItemEntry_isObjectMatrixNeed(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool isModelMatrixNeed()
		{
			bool result = GlobalsPINVOKE.OdGiMapperItemEntry_isModelMatrixNeed(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool isDependsFromObjectMatrix()
		{
			bool result = GlobalsPINVOKE.OdGiMapperItemEntry_isDependsFromObjectMatrix(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool isVertexTransformRequired()
		{
			bool result = GlobalsPINVOKE.OdGiMapperItemEntry_isVertexTransformRequired(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void setVertexTransform(int nCount, OdGePoint3d pPoints)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_setVertexTransform__SWIG_0(this.swigCPtr, nCount, OdGePoint3d.getCPtr(pPoints));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setVertexTransform(OdGeExtents3d exts)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_setVertexTransform__SWIG_1(this.swigCPtr, OdGeExtents3d.getCPtr(exts));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setObjectTransform(int nCount, OdGePoint3d pPoints)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_setObjectTransform__SWIG_1(this.swigCPtr, nCount, OdGePoint3d.getCPtr(pPoints));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void setObjectTransform(OdGeExtents3d exts)
		{
			GlobalsPINVOKE.OdGiMapperItemEntry_setObjectTransform__SWIG_2(this.swigCPtr, OdGeExtents3d.getCPtr(exts));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		private object locker = new object();

		private HandleRef swigCPtr;

		public class MapInputTriangle : IDisposable
		{
			[EditorBrowsable(EditorBrowsableState.Never)]
			public MapInputTriangle(IntPtr cPtr, bool cMemoryOwn)
			{
				this.swigCMemOwn = cMemoryOwn;
				this.swigCPtr = new HandleRef(this, cPtr);
			}

			[EditorBrowsable(EditorBrowsableState.Never)]
			public static HandleRef getCPtr(OdGiMapperItemEntry.MapInputTriangle obj)
			{
				if (obj != null)
				{
					return obj.swigCPtr;
				}
				return new HandleRef(null, IntPtr.Zero);
			}

			~MapInputTriangle()
			{
				this.Dispose();
			}

			public virtual void Dispose()
			{
				if (this.swigCPtr.Handle != IntPtr.Zero)
				{
					if (this.swigCMemOwn)
					{
						lock (this.locker)
						{
							if (this.swigCPtr.Handle != IntPtr.Zero && this.swigCMemOwn)
							{
								this.swigCMemOwn = false;
								GlobalsPINVOKE.delete_OdGiMapperItemEntry_MapInputTriangle(this.swigCPtr);
							}
						}
						this.swigCMemOwn = false;
					}
					this.swigCPtr = new HandleRef(null, IntPtr.Zero);
				}
				GC.SuppressFinalize(this);
			}

			public OdGePoint3d inPt
			{
				get
				{
					IntPtr intPtr = GlobalsPINVOKE.OdGiMapperItemEntry_MapInputTriangle_inPt_get(this.swigCPtr);
					OdGePoint3d result = (intPtr == IntPtr.Zero) ? null : new OdGePoint3d(intPtr, false);
					if (GlobalsPINVOKE.SWIGPendingException.Pending)
					{
						throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
					}
					return result;
				}
				set
				{
					GlobalsPINVOKE.OdGiMapperItemEntry_MapInputTriangle_inPt_set(this.swigCPtr, OdGePoint3d.getCPtr(value));
					if (GlobalsPINVOKE.SWIGPendingException.Pending)
					{
						throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
					}
				}
			}

			public MapInputTriangle() : this(GlobalsPINVOKE.new_OdGiMapperItemEntry_MapInputTriangle(), true)
			{
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
			}

			private object locker = new object();

			private HandleRef swigCPtr;

			protected bool swigCMemOwn;
		}

		public class MapOutputCoords : IDisposable
		{
			[EditorBrowsable(EditorBrowsableState.Never)]
			public MapOutputCoords(IntPtr cPtr, bool cMemoryOwn)
			{
				this.swigCMemOwn = cMemoryOwn;
				this.swigCPtr = new HandleRef(this, cPtr);
			}

			[EditorBrowsable(EditorBrowsableState.Never)]
			public static HandleRef getCPtr(OdGiMapperItemEntry.MapOutputCoords obj)
			{
				if (obj != null)
				{
					return obj.swigCPtr;
				}
				return new HandleRef(null, IntPtr.Zero);
			}

			~MapOutputCoords()
			{
				this.Dispose();
			}

			public virtual void Dispose()
			{
				if (this.swigCPtr.Handle != IntPtr.Zero)
				{
					if (this.swigCMemOwn)
					{
						lock (this.locker)
						{
							if (this.swigCPtr.Handle != IntPtr.Zero && this.swigCMemOwn)
							{
								this.swigCMemOwn = false;
								GlobalsPINVOKE.delete_OdGiMapperItemEntry_MapOutputCoords(this.swigCPtr);
							}
						}
						this.swigCMemOwn = false;
					}
					this.swigCPtr = new HandleRef(null, IntPtr.Zero);
				}
				GC.SuppressFinalize(this);
			}

			public OdGePoint2d outCoord
			{
				get
				{
					IntPtr intPtr = GlobalsPINVOKE.OdGiMapperItemEntry_MapOutputCoords_outCoord_get(this.swigCPtr);
					OdGePoint2d result = (intPtr == IntPtr.Zero) ? null : new OdGePoint2d(intPtr, false);
					if (GlobalsPINVOKE.SWIGPendingException.Pending)
					{
						throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
					}
					return result;
				}
				set
				{
					GlobalsPINVOKE.OdGiMapperItemEntry_MapOutputCoords_outCoord_set(this.swigCPtr, OdGePoint2d.getCPtr(value));
					if (GlobalsPINVOKE.SWIGPendingException.Pending)
					{
						throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
					}
				}
			}

			public MapOutputCoords() : this(GlobalsPINVOKE.new_OdGiMapperItemEntry_MapOutputCoords(), true)
			{
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
			}

			private object locker = new object();

			private HandleRef swigCPtr;

			protected bool swigCMemOwn;
		}

		public enum MappingIteratorType
		{
			kShellMapIt,
			kTriListMapIt,
			kPolyIt
		}
	}
}
